<template>
  <div class="logo" :style="style">
    <div class="logo-img"></div>
    <p class="logo__text" v-show="!fold">Z-Mall Admin</p>
  </div>
</template>

<script>
export default {
  name: "Logo",
  props: {
    fold: {
      default: false,
    },
  },
  computed: {
    style() {
      return {
        paddingLeft: (this.fold ? 15 : 20) + "px",
      };
    },
  },
};
</script>

<style scoped>
.logo {
  display: flex;
  /*flex-direction: column;*/
  align-items: center;
  /*justify-content: space-between;*/
  padding-left: 20px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.5s;
}
.logo-img {
  background: url("/img/z-mall-logo-white@1x.png") no-repeat;
  background-size: 100%;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
}

.logo__text {
  margin-left: 10px;
  padding-top: 5px;
  font-size: 16px;
  font-family: “Arial Black”;
  color: #7f8c8d;
  font-style: italic;
  white-space: nowrap;
}
</style>
